# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkfontscale
pkgver=1.2.2
pkgrel=6
pkgdesc="Scalable font index generator for X"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
options="!check"  # No test suite.
subpackages="$pkgname-doc"
makedepends="freetype-dev libfontenc-dev util-macros xorgproto zlib-dev"
triggers="$pkgname.trigger=/usr/share/fonts/*"
source="https://www.x.org/releases/individual/app/mkfontscale-$pkgver.tar.xz"
replaces="mkfontdir"
provides="mkfontdir=$pkgver-r$pkgrel"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4c846816325347c91008d76b3a5610c1e58a8414fd55117e7ccf51310db4b20b8397ecf6c9177ff77322e27ee088bf034fd175c9210465c50b094bab8dada4b3  mkfontscale-1.2.2.tar.xz
"
